package com.example.hello.client.Paragraph;

import com.github.gwtbootstrap.client.ui.Paragraph;

public class VBootstrapParagraph extends Paragraph {

    public VBootstrapParagraph() {
        setStyleName("v-paragraph-bootstrap");
    }

    public void setAlignment(String alignment) {
        if (!getStyleName().contains("spacing_" + alignment.toLowerCase()))
            addStyleName("spacing_" + alignment.toLowerCase());
    }

    public void setMargin(int margin) {
        if (!getStyleName().contains("margin-" + margin))
            addStyleName("margin-" + margin);
    }

}